<php>function _get_system_widget($name){</php>
<switch name="name">
    <case value="CmfHub">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title">内部资源系统使用须知:</h3>
            </div>
            <div class="panel-body home-info">
                <ul class="list-unstyled">
                    <li><span>1.总经理注册时,职位请填写 总经理 即可,填写板块名后,项目名可随意填一个</span></li>
                    <li><span>2.其它同事请填写自己对应的职位,并填写板块名和项目名.</span></li>
                    <li><span>3.总经理注册后,暂无登录权限,须由程序后台审核确认后,方可登录.</span></li>
                    <li><span>4.除总经理以外的同事注册后,暂无登录权限,须由各个板块总经理后台“注册验证”审核确认后,方可登录.</span></li>
                    <li><span>5.项目总监可以管理本项目部门的“注册验证”审核确认后,方可登录.</span></li>
                    <li><span>6.管理员、总经理、项目总监，通过“注册验证”后即可登录，并都具有注册审核及登录审核.</span></li>
                    <li><span>7.项目同事需等管理员、总经理、项目总监任何一方审核”注册验“及“登录验证”，方可登录系统.</span></li>
                    <li><span>8.除了管理员、总经理、项目总监没限时使用系统，其它项目同事只有2个小时使用系统时间.</span></li>
                    <li><span>9.忘记密码的同事,可自行点击登录页面下的忘记密码功能用邮箱号重置密码.</span></li>
                    <li><span>10.登录请使用邮箱号登录.</span></li>
                    <li><span>11.各个板块总经理可以看到所有项目资料</span></li>
                    <li><span>12.总经理除外的同事只能看到注册时填写的项目下的资料.</span></li>
                    <li><span>13.总经理,可对所有项目的资料拥有查看,添加,发布,编辑,删除权限</span></li>
                    <li><span>14.项目总监,可对所属项目的资料拥有查看,添加,发布,编辑,删除权限</span></li>
                    <li><span>15.项目同事,可对所属项目的资料拥有查看,添加,发布,编辑权限</span></li>
					<li><span>16.添加项目文章,分类选择,只需勾选"项目"即可</span></li></ul>
            </div>
        </div>
    </case>

</switch>
<php>}</php>

<include file="public@header"/>
<style>
    .home-info li em {
        float: left;
        width: 120px;
        font-style: normal;
        font-weight: bold;
    }

    .home-info ul {
        padding: 0;
        margin: 0;
    }

    .panel {
        margin-bottom: 0;
    }

    .grid-sizer {
        width: 10%;
    }

    .grid-item {
        margin-bottom: 5px;
        padding: 5px;
    }

    .col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
        padding-left: 5px;
        padding-right: 5px;
        float: none;
    }

</style>
<hook name="admin_before_head_end"/>
</head>
<body>
<div class="wrap">
    <empty name="has_smtp_setting">
        <div class="grid-item col-md-12">
            <div class="alert alert-danger alert-dismissible fade in" role="alert" style="margin-bottom: 0;">
                <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
                <strong>提示!</strong> 邮箱配置未完成,无法进行邮件发送!
                <a href="#" data-dismiss="alert" aria-label="Close"
                   onclick="parent.openapp('{:url('Mailer/index')}','admin_mailer_index','邮箱配置');">现在设置</a>
            </div>
        </div>
    </empty>

    <if condition="!extension_loaded('fileinfo')">
        <div class="grid-item col-md-12">
            <div class="alert alert-danger alert-dismissible fade in" role="alert" style="margin-bottom: 0;">
                <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
                <strong>提示!</strong> php_fileinfo扩展没有开启，无法正常上传文件！
            </div>
        </div>
    </if>

    <div class="grid-item col-md-12" id="thinkcmf-notices-grid" style="display:none;">
        <div class="dashboard-box">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title">{:lang('SYSTEM_NOTIFICATIONS')}</h3>
                </div>
                <div class="panel-body home-info">
                    <ul id="thinkcmf-notices" class="list-unstyled">
                        <li>
                            <img src="__TMPL__/public/assets/images/loading.gif" style="vertical-align: middle;"/>
                            <span style="display: inline-block; vertical-align: middle;">加载中...</span>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>

    <div class="home-grid">
        <!-- width of .grid-sizer used for columnWidth -->
        <div class="grid-sizer"></div>
        <foreach name="dashboard_widgets" item="vo">
            <if condition="$vo.is_system">
                <div class="grid-item col-md-12" data-system="1" data-widget="{$vo.name}">
                    <div class="dashboard-box">{:_get_system_widget($vo.name)}</div>
                </div>
                <else/>
                <present name="dashboard_widget_plugins[$vo['name']]">
                    <div class="grid-item col-md-{$dashboard_widget_plugins[$vo['name']]['width']}" data-system="0"
                         data-widget="{$vo.name}">
                        <div class="dashboard-box">{$dashboard_widget_plugins[$vo.name]['view']}</div>
                    </div>
                </present>

            </if>

        </foreach>
    </div>
</div>
<hook name="admin_before_body_end"/>
</body>
</html>
